package com.zsr.example.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zsr.example.entity.EduPathCategory;
import com.zsr.example.mapper.EduPathCategoryMapper;
import com.zsr.example.service.EduPathCategoryService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 学习路径分类 服务实现类
 * </p>
 *
 * @author zsr
 * @since 2022-02-10
 */
@Service
public class EduPathCategoryServiceImpl extends ServiceImpl<EduPathCategoryMapper, EduPathCategory> implements EduPathCategoryService {

    @Override
    public List<EduPathCategory> getListOrderBy() {
        QueryWrapper<EduPathCategory> queryWrapper = new QueryWrapper<>();
        queryWrapper.orderByAsc("sort","gmt_create");
        return this.list(queryWrapper);
    }
}
